package com.mmall.seckill.common.redis.keyCode;

import com.mmall.seckill.common.redis.keyCode.impl.BasePrefix;

/**
 * Created by megan on 2018/6/27.
 */
public class GoodsKey extends BasePrefix {

    public static final int PAGE_EX = 60;

    public GoodsKey( int expireSeconds,String prefix) {
        super(expireSeconds,prefix);
    }

    /**
     * 商品列表缓存
     */
    public static GoodsKey getGoodsListKeyPage = new GoodsKey(PAGE_EX,"glp");
    public static GoodsKey getGoodsDetailKeyPage = new GoodsKey(PAGE_EX,"gdt");

    /**
     * 商品 数量缓存
     */
    public static GoodsKey getGoodsStock = new GoodsKey(0,"gst");
}
